package com.example.demo.Service;

import com.example.demo.Entity.User;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public interface UserService {
    public void insertUser(User user);
    public User selectById(Integer id);
    public int deleteById(Integer id);
    public void update(User newuser);
    public Integer testUpdateById(Integer id);
    public void register(String username,String password);
    public User FindUserByName(String username);
    public String FindPasswordByName(String username);
    public void takeFile(MultipartFile file) throws Exception;
    public void downloadImg(String source,String target) throws Exception;
    public boolean imageTypeRight(MultipartFile file);

    public void updatePWD(String newPassword, String username);
}
